
<%@page import="java.util.Map"%>
<%@page import="cn.ylhx.venue.background.entity.Background"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri= "http://java.sun.com/jsp/jstl/core" prefix= "c" %> 
<c:set var="basePath" value="${pageContext.request.contextPath}"></c:set>

<link rel="stylesheet" href="${basePath}/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="${basePath}/bootstrap/css/bootstrap-datepicker.min.css" />
<link rel="stylesheet" href="${basePath}/static/css/font-awesome.min.css">
<link rel="stylesheet" href="${basePath}/static/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" href="${basePath}/bootstrap/css/bootstrap-table.min.css">
<link rel="stylesheet" href="${basePath}/static/css/main.css">
<link rel="stylesheet" href="${basePath}/static/plugins/treegrid/jquery.treegrid.css">

<script src="${basePath}/jquery/jquery-3.2.1.min.js"></script>
<script src="${basePath}/jquery/jquery.validate.min.js"></script>
<script src="${basePath}/jquery/jquery.form.js"></script>
<script src="${basePath}/bootstrap/js/bootstrap.min.js"></script>
<script src="${basePath}/bootstrap/js/bootstrap-datepicker.min.js"></script>
<script src="${basePath}/bootstrap/js/bootstrap-datepicker.zh-CN.min.js"></script>
<script src="${basePath}/bootstrap/js/bootstrap-table.min.js"></script>
<script src="${basePath}/static/plugins/layer/layer.js"></script>
<script src="${basePath}/static/plugins/treegrid/jquery.treegrid.min.js"></script>
<script src="${basePath}/static/plugins/treegrid/jquery.treegrid.bootstrap3.js"></script>
<script src="${basePath}/static/plugins/treegrid/jquery.treegrid.extension.js"></script>
<script src="${basePath}/static/plugins/treegrid/tree.table.js"></script>
<script src="${basePath}/static/plugins/ztree/jquery.ztree.all.min.js"></script>

<script src="${basePath}/js/common/page.js"></script>
<script type="text/javascript">
//初始化datepicker对象
$('.datepicker').datepicker({
	 todayHighlight: true,
	 language:"zh-CN", 
    format: 'yyyy-mm-dd',
    autoclose: true//选中自动关闭
})
</script>
<div class="container">
   <!-- 页面导航 -->
   <div class="page-header">
		<div class="page-title" style="padding-bottom: 5px">
		<%
		Map<String,Object> map =(Map)request.getAttribute("map");
		
		%>
			<h3>场次选择</h3>
		</div>
	</div>
	
	<c:forEach items="${map.list_background}" var="background" varStatus="vs">  
        <tr>  
              
             <td>  
                <s:property value="#vs.index+1"/>  
             </td>  
             <td align = "center">${background.name}</td>  
             <td align = "center">${background.time_slice}</td>  
            <!--  <td align = "center">${user.PUserName}</td>  
             <td align = "center">${user.PEmail}</td>  
             <td align = "center"><html:department pdeptid="${user.PDeptid}"></html:department></td>  自定义标签 -->  
         </tr>  
</c:forEach>  
	
	<form method="post" id="userFormHead">
		<!-- 列表显示内容 -->
		<div class="row col-md-12">
			<table class="table table-bordered" id="userTable">
				<thead>
					<tr>
					    <th>日期</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody id="tbody">
					<tr>
						<td>2017-11-01</td>
						<td><a onclick="javascript:Pro();">预定</a></td>
						
					</tr>
					<tr>
						<td>2017-11-02</td>
						<td><a onclick="javascript:Pro();">预定</a></td>
					</tr>
				</tbody>
			</table>
			<div>
				
			</div>
			
			<%@include file="../common/page.jsp" %>
		</div>
	</form>
</div>
<script type="text/javascript" src="${basePath}/js/proposeSite/proposeSite_list.js"></script>
<script type="text/javascript"> 
function Pro() 
 { 
	
    //var ProDate=$(this).parent().parent() td:first.html();
  // alert(ProDate)
 //alert( $(this).parent().parent().children('td').eq(0).html());
  
    window.location.href="${basePath}/mobile/proposeSiteDetail.do?ProDate="+"2017-11-01";
 } 

 </script>
